using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.WindowsMobile.Samples.Location;

namespace SimpleGPSApp.Base
{
    public class Satellites
    {
        public static bool SatelliteIsInSolution(GpsPosition _position, Satellite _satellite)
        {
            for (int j = 0; j < _position.GetSatellitesInSolution().Length; j++)
            {
                if (_position.GetSatellitesInSolution()[j].Id == _satellite.Id)
                    return true;
            }

            return false;
        }
    }
}
